package cn.two.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;

import cn.two.model.OaCheck;

public interface OaCheckService {
	/**
	 * 查询全部考勤
	 * @return
	 */
	List<OaCheck> selectall();
	
	/**
	 * 添加考勤
	 * @param oaCheck
	 * @return
	 */
	int addcheck (OaCheck oaCheck);
	
	/**
	 * 删除考勤
	 * @param checkId
	 * @return
	 */
	void delcheck(OaCheck oaCheck);
	
	/**
	 * 修改考勤
	 * @param oaCheck
	 * @return
	 */
	void upcheck(OaCheck oaCheck);
	
	/**
	 * 分页考勤
	 * @param currPage
	 * @param pageSize
	 * @return
	 */
	Page queryChecksByPage(int currPage,int pageSize);
	
	/**
	 * 模糊分页查询
	 * @param cond
	 * @return
	 */
	Page queryLikeChecksByPage(Map<String, Object> cond);
	/**
	 * 查询单个的申请
	 * @param oaCheck
	 * @return
	 */
	OaCheck checkshowbyid(OaCheck oaCheck );
	/**
	 * 审批考勤
	 * @param oaCheck
	 */
	void replycheck(OaCheck oaCheck);
}
